package org.nstack.header.vm;

import org.nstack.header.volume.VolumeInventory;
import org.nstack.header.errorcode.ErrorCode;


public interface VmDetachVolumeExtensionPoint {
    void preDetachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void beforeDetachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void afterDetachVolume(VmInstanceInventory vm, VolumeInventory volume);

    void failedToDetachVolume(VmInstanceInventory vm, VolumeInventory volume, ErrorCode errorCode);
}
